package hu.arnoldfarkas.camel.dropbox;


import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
import org.apache.camel.impl.DefaultEndpoint;

public class DropboxEndpoint extends DefaultEndpoint {

    private String userId;
    private String accessToken;

    public DropboxEndpoint() {
    }

    public DropboxEndpoint(String uri, DropboxComponent component) {
        super(uri, component);
    }

    public DropboxEndpoint(String endpointUri) {
        super(endpointUri);
    }

    public Producer createProducer() throws Exception {
        return new DropboxProducer(this);
    }

    public Consumer createConsumer(Processor processor) throws Exception {
        return new DropboxConsumer(this, processor);
    }

    public boolean isSingleton() {
        return true;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
